package com.mocha.testinterface;

public class Impl {

    public static void test(TFunction<String, String> tf) {
        System.out.printf(tf.call("123"));
    }

    public static void test2(){
        test(new TFunction<String, String>() {
            @Override
            public String call(String s) {
                System.out.println(s);
                return s+"1";
            }
        });
    }

    public static void main(String[] args) {
        Impl.test2();
    }

}
